//
//  BezierToForward.h
//  client
//
//  Created by DuanHongbo on 15/1/29.
//
//

#ifndef __client__BezierToForward__
#define __client__BezierToForward__

#include <stdio.h>
#include "BezierByForward.h"

class BezierToForward : public BezierByForward
{
public:
    /** creates the action */
    static BezierToForward* create(float duration, const ccBezierConfig& c,bool autoHeadOn = false, float initAngle = 0);
    
    //
    // Overrides
    //
    virtual BezierToForward* clone() const override;

    virtual BezierToForward* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
    BezierToForward() {}
    virtual ~BezierToForward() {}
    
    /** initializes the action */
    bool initWithDuration(float duration,const ccBezierConfig& c,bool autoHeadOn, float initAngle);
    
    virtual void startWithTarget(Node *target) override;
protected:
    ccBezierConfig _toConfig;
    
private:
    CC_DISALLOW_COPY_AND_ASSIGN(BezierToForward);
};

#endif /* defined(__client__BezierToForward__) */
